The title compound, C17H19N3O2, crystallizes with two independent molecules (A and B) in the asymmetric unit. In both molecules, the pyran ring has a twisted conformation (5S4), with Q = 0.301 (3) Å, θ = 116.7 (6) and ϕ= 213.6 (7)° for molecule A, and Q = 0.364 (2) Å, θ = 113.7 (3) and ϕ = 213.0 (4)° for molecule B. In molecule B, the terminal ethyl group is disordered over two orientations with an occupancy ratio of 0.55 (1):0.45 (1). In the crystal, molecules A and B form very similar but separate R12(7) motifs through N—H⋯O and C—H⋯O hydrogen bonds. The resulting chains along  are interlinked by weaker C—H⋯O and C—H⋯π interactions, forming layers parallel to the bc plane.